/*
import java.util.Scanner;

*/
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2022-04-27
 * Time: 16:57
 *//*

public class FactorialOfNNNN {
    static int Factorial(int N){
        int ret = 1;
        for (int i = 1; i <= N; i++) {
            ret*=i;
        }
        return ret;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()) {
            int N = sc.nextInt();
            System.out.println(Factorial(N));
        }
    }
}
*/
